package com.lianlu.res.notify;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>发送语音通知信息</p >
 * https://www.shlianlu.com/console/document/voiceTs
 *
 *
 *
 * @author youyoukele
 * @version 1.0
 * @date 2024/5/18 14:25
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class SendVoiceNotifyResult {

    /**
     * taskId : 202203150017868000003
     * phone : 13000200000
     * resptime : 1679740568845
     * hold : 0
     * respCode : FAILURE
     * message : error
     * status : 01
     * tag :
     */

    private String taskId;
    private String phone;
    private String resptime;
    private String hold;
    /**
     * DELIVERED为接收成功，其他为接收失败，详情见语音状态码
     */
    private String respCode;
    private String message;
    private String status;
    private String tag;

    public boolean isSuccessRespCode() {
        return "DELIVERED".equals(respCode);
    }
}
